package net.zjitc.service;

import net.zjitc.dao.BookDao;
import net.zjitc.dao.BookDaoImpl;
import net.zjitc.domain.Book;

import java.util.List;

/**
 * Created by Administrator on 2017/10/9.
 */
public class BookServiceImpl implements BookService{
    @Override
    public List<Book> findAll() {
        BookDao dao=new BookDaoImpl();
        List<Book> list = dao.findAll();
        return list;
    }
    @Override
    public Book findById(String id) {
        BookDao bookDao=new BookDaoImpl();
        Book book=bookDao.findById(id);
        return book;
    }
}
